package com.example.tome.component_router.dagger.component;


import android.app.Activity;
import android.content.Context;

import com.example.tome.component_router.dagger.module.ActivityModule;
import com.example.tome.component_router.dagger.scope.ActivityScope;


import dagger.Component;

/**
 * @Created by TOME .
 * @时间 2018/5/2 18:08
 * @描述 ${TODO}
 */

@ActivityScope  //添加注解实现局部单例
@Component(dependencies = AppComponent.class, modules = ActivityModule.class)
public interface ActivityComponent  {

    /**
     * 获取Activity实例
     *
     * @return Activity
     */


    /**
     * 注入LoginActivity所需的依赖
     *  void inject(MainActivity mainActivity);
     */
    void inject(Activity activity);
}
